Telegram Group & Telegram Channel
# پاسخ تمرین شماره 1
def add(x, y):
return x + y
def min(x, y):
return x - y
def mul(x, y):
return x * y
def div(x, y):
return x / y
x = int(input('اولين عدد را وارد کنيد:'))
o = input('عملگر انتخابي خود را وارد کنيد (/,*,-,+):')
y = int(input('دومين عدد را وارد کنيد:'))
if o == '+':
o = add(x,y)
print(o)
elif o == '*':
o = mul(x,y)
print(o)
elif o == '/':
o = div(x,y)
print(o)
elif o == '-':
o = min(x,y)
print(o)
else:
print('عملگر وارد شده تعریف نشده است.')



tg-me.com/python12/1302
Create:
Last Update:

# پاسخ تمرین شماره 1
def add(x, y):
return x + y
def min(x, y):
return x - y
def mul(x, y):
return x * y
def div(x, y):
return x / y
x = int(input('اولين عدد را وارد کنيد:'))
o = input('عملگر انتخابي خود را وارد کنيد (/,*,-,+):')
y = int(input('دومين عدد را وارد کنيد:'))
if o == '+':
o = add(x,y)
print(o)
elif o == '*':
o = mul(x,y)
print(o)
elif o == '/':
o = div(x,y)
print(o)
elif o == '-':
o = min(x,y)
print(o)
else:
print('عملگر وارد شده تعریف نشده است.')

BY پایتون / python


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python12/1302

View MORE
Open in Telegram


پایتون python Telegram | DID YOU KNOW?

Date: |

Why Telegram?

Telegram has no known backdoors and, even though it is come in for criticism for using proprietary encryption methods instead of open-source ones, those have yet to be compromised. While no messaging app can guarantee a 100% impermeable defense against determined attackers, Telegram is vulnerabilities are few and either theoretical or based on spoof files fooling users into actively enabling an attack.

پایتون python from sg


Telegram پایتون / python
FROM USA